﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true"
    CodeFile="PhanCongChuyenMon.aspx.cs" Inherits="QuanTri_PhanCongChuyenMon" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Phân công chuyên môn cho giáo viên</div>
                <div class="personal_style_form" style="width:100%">
                <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>
                    <span>Năm học</span>&nbsp
                    <asp:DropDownList ID="dllNamHoc" runat="server" Width="120px">
                    </asp:DropDownList>
                   <span style="padding-left: 50px;">
                            Chọn khối </span>&nbsp
                    <asp:DropDownList ID="ddlKhoi" runat="server" Width="120px" AppendDataBoundItems="True"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlKhoi_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Label ID="lblMa" Text='<%#Bind("MaLop") %>' runat="server" Visible="false"></asp:Label>
                    <asp:Label ID="lblTenLop" Text='<%#Eval("TenLop") %>' runat="server"></asp:Label>
                    <div style="float:right;margin-top:50px;margin-right:5px">
                     <asp:CheckBox ID="ckbTaCa" runat="server"  AutoPostBack="True"
                        OnCheckedChanged="ckbTaCa_CheckedChanged" />Chọn hết
                        </div>
                </div>
                <br />
                <br />
                <br />
                <div style="width: 100%; margin-bottom: 30px">
                    <div style="width: 32%; float: left">
                        <div style="color: Blue; font-size: 14px; width: 150px; margin-left: 10px; float: left;
                            margin-bottom: 10px">
                            Danh sách lớp học
                        </div>
                        <br />
                        <div style="float:left;width:100%">
                        <asp:GridView ID="grvdsLop" AutoGenerateColumns="False" Width="100%"
                            Height="28px" runat="server" OnSelectedIndexChanged="grvdsLop_SelectedIndexChanged">
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:TemplateField HeaderText="Lớp học">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblMaLop" Text='<%#Bind("MaLop") %>' Visible="false" runat="server">
                                            </asp:Label>
                                            <%#Eval("TenLop") %>
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowSelectButton="true" HeaderText="Chọn" ControlStyle-Font-Underline="true"
                                    ControlStyle-ForeColor="Blue" SelectText="Chọn">
                                    <ControlStyle Font-Underline="True" ForeColor="Blue"></ControlStyle>
                                </asp:CommandField>
                            </Columns>
                            <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                        </asp:GridView>
                        </div>
                    </div>
                    <div style="width: 65%; float:right;padding-left:20px">
                        <div style="width: 150px; color: Blue; font-size: 14px; margin-bottom: 10px">
                            Danh sách phân công
                        </div>
                        <div>
                        <asp:GridView ID="grvPhanCong" AutoGenerateColumns="False" Width="100%" Height="28px"
                            runat="server" ShowFooter="True" OnRowDataBound="grvPhanCong_RowDataBound">
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        Chọn
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <center>
                                            <asp:CheckBox ID="ckItem" runat="server" /></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Môn học">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblMaMon" Text='<%#Bind("MaMon") %>' Visible="false" runat="server">
                                            </asp:Label>
                                            <%#Eval("TenMon") %>
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Giáo viên">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlGiaoVien" CssClass="dr" Width="100%" runat="server">
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                        </asp:GridView>
                    </div>
                    </div>
                </div>
                <div id="personalSubmit" class="personal_submit clearfix" style="margin-left: 200px">
                    <asp:Button ID="btnLuu" CssClass="button" Text="Lưu" runat="server" OnClick="btnLuu_Click" />&nbsp&nbsp
                    <%-- <asp:Button ID="btnXuat" CssClass="button" Text="Xuất ra Excel" runat="server" 
                      onclick="btnXuat_Click" />&nbsp&nbsp--%>
                    <asp:Button ID="btnXoa" Text="Hủy" CssClass="button" runat="server" OnClick="btnXoa_Click" />
                </div>
               </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
